home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / mus / edit / AlgoRhythms.lha / AlgoRhythms / Source / algorhythms.h < prev    next >
C/C++ Source or Header  |  1994-01-02  |  1KB  |  62 lines

  1. #ifndef ALGORHYTHMS_LOADED
  2. #define ALGORHYTHMS_LOADED 1
  3. /* AlgoRhythms.h */
  4. #define MAXVOICE (20)
  5.  
  6. typedef struct note_event NOTE_EVENT_TYPE;
  7. struct note_event
  8. {
  9.     struct timeval nv_r_start_time,
  10.                    nv_r_duration,
  11.                    nv_r_stop_time;
  12.     int nv_i_scale_index,
  13.         nv_i_dynamic,
  14.         nv_i_channel,
  15.         nv_i_cur_pitch,
  16.         nv_i_low_pitch,
  17.         nv_i_high_pitch,
  18.         nv_i_walking,
  19.         nv_i_playing,
  20.         nv_i_audio,
  21.         nv_i_id,
  22.         nv_i_audio_chan,
  23.         nv_i_was_audio;
  24. };
  25.  
  26. typedef struct parameter_struct PARAMETER_TYPE;
  27. struct parameter_struct
  28. {
  29.     double  prm_d_mean_cycle,
  30.             prm_d_mean_phase,
  31.             prm_d_range_cycle,
  32.             prm_d_range_phase;
  33. };
  34.  
  35. typedef struct form_struct FORM_TYPE;
  36. struct form_struct
  37. {
  38.     PARAMETER_TYPE  frm_s_pitch,
  39.                     frm_s_rhythm,
  40.                     frm_s_dynamic,
  41.                     frm_s_texture;
  42. };
  43.  
  44. typedef struct note_len_struct NOTE_LEN_TYPE;
  45. struct note_len_struct
  46. {
  47.     unsigned int    len_i_min,
  48.                     len_i_max,
  49.                     len_i_dif;
  50. };
  51.  
  52. extern int gi_fubar;
  53. extern int gi_quit;
  54.  
  55. #ifdef MEASURE
  56. extern unsigned int gi_notes_measure;
  57. #endif
  58.  
  59. extern void randomize_parameter(PARAMETER_TYPE *);
  60.  
  61. #endif
  62.